//******************************************* // MakeBigMetrics //******************************************* #pragma segment Main static void MakeBigMetrics(BigGlyphMetrics *bigMetrics, Handle nfntResHdl, const Rect *glyphImgRectPtr, const OffsetWidthTbl *offsetWidthPtr) { FontRec *fontRecPtr; fontRecPtr = (FontRec *)*nfntResHdl; bigMetrics->height = (glyphImgRectPtr->bottom) - (glyphImgRectPtr->top); bigMetrics->width = glyphImgRectPtr->right; /* glyphImgRectPtr->left = 0 */ bigMetrics->horiBearingX = (offsetWidthPtr->characterOffset) + (fontRecPtr->kernMax); bigMetrics->horiBearingY = (fontRecPtr->ascent) - (glyphImgRectPtr->top); bigMetrics->horiAdvance = offsetWidthPtr->characterWidth; bigMetrics->vertBearingX = -(glyphImgRectPtr->right)/2; /* glyphImgRectPtr->left = 0 */ bigMetrics->vertBearingY = -(glyphImgRectPtr->top); bigMetrics->vertAdvance = (fontRecPtr->ascent) + (fontRecPtr->descent); }